package com.nhatviet.webservice.activities;

import com.nhatviet.webservice.R;
import com.nhatviet.webservice.activities.flickr.FlickrSearchActivity;
import com.nhatviet.webservice.activities.foursquare.FourSquareSearchActivity;
import com.nhatviet.webservice.activities.wiki.WikiActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class ChoosingAppsActivity extends Activity
{
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		final Button buttonFlickr = (Button) findViewById(R.id.button_flickr);
		final Button buttonWiki = (Button) findViewById(R.id.button_wiki);
		final Button buttonFourSquare= (Button) findViewById(R.id.button_four_square);
		
		buttonFlickr.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(ChoosingAppsActivity.this, FlickrSearchActivity.class);
				startActivity(intent);
			}
		});
		buttonWiki.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(ChoosingAppsActivity.this, WikiActivity.class);
				startActivity(intent);
			}
		});
		buttonFourSquare.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v)
			{
				Intent intent = new Intent(ChoosingAppsActivity.this, FourSquareSearchActivity.class);
				startActivity(intent);
			}
		});
		
	}
}

